﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLQTPM_ThuDuc_Group7.DAO;
using QLQTPM_ThuDuc_Group7.DTO;

namespace QLQTPM_ThuDuc_Group7.BUS
{
    class DuongBUS
    {
        public static int TimDuong(string info)
        {
            if (info == "Tất cả")
            {
                return -1;
            }
            return DuongDAO.TimDuong(info);
        }

        public static bool TonTai(string info)
        {
            return DuongDAO.TonTai(info);
        }

        public static bool ThemMoiDuong(string info)
        {
            return DuongDAO.ThemMoiDuong(info);
        }
    }
}
